/**
 * Created by Daguang Li on 12/04/2017.
 */
import environment from '../environment'

let loggerService = {
    log: (...msg) => {
        if (environment.getEnvironment().environment === "MOCK" || environment.getEnvironment().environment === "UAT") {
            console.log(...msg);
        }
    },
    info: (...msg) => {
        if (environment.getEnvironment().environment === "MOCK" || environment.getEnvironment().environment === "UAT") {
            console.log(...msg);
        }
    },
    warn: (...msg) => {
        if (environment.getEnvironment().environment === "MOCK" || environment.getEnvironment().environment === "UAT") {
            console.warn(...msg);
        }
    },
    error: (...msg) => {
        if (environment.getEnvironment().environment === "MOCK" || environment.getEnvironment().environment === "UAT") {
            console.error(...msg);
        }
    }
};
export default loggerService;
